package com.innovation.chengzhangriji.http;

import com.google.gson.annotations.SerializedName;
import com.innovation.library.http.InnovationRequestBody;

public class CheckPasswordRequest extends BaseTokenRequest {

    public static final String PATH = BaseRequest.PATH + "api/Check_Code";

    private String password;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    protected InnovationRequestBody getInnovationRequestBody() {
        CheckPasswordRequestBody body = new CheckPasswordRequestBody();
        body.setPhone(getPhone());
        body.setToken(getToken());
        body.setPassword(getPassword());
        return body;
    }

    private class CheckPasswordRequestBody extends BaseTokenRequestBody {

        @SerializedName("Password")
        private String password;

        private CheckPasswordRequestBody() {
            setSv(BaseRequestConfig.SV_CHECK_PASSWORD);
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }
    }
}
